<?php

namespace App\Listeners;

use Laravel\Reverb\Events\ChannelCreated;
use Laravel\Reverb\Events\ChannelRemoved;
use Laravel\Reverb\Events\ConnectionPruned;
use Laravel\Reverb\Events\MessageReceived;
use Laravel\Reverb\Events\MessageSent;

class ReverbSubscribe
{
    /**
     * Create the event listener.
     */
    public function __construct()
    {
        //
    }

    public function handleConnectionPruned(ConnectionPruned $event): void
    {
        //
    }

    public function handleChannelCreated(ChannelCreated $event): void
    {
        //
    }

    public function handleChannelRemoved(ChannelRemoved $event): void
    {
        //
    }

    public function handleMessageReceived(MessageReceived $event): void
    {
        //
    }

    public function handleMessageSent(MessageSent $event): void
    {
        //
    }

    public function subscribe(): array
    {
        return [
            ConnectionPruned::class => 'handleConnectionPruned',
            ChannelCreated::class => 'handleChannelCreated',
            ChannelRemoved::class => 'handleChannelRemoved',
            MessageReceived::class => 'handleMessageReceived',
            MessageSent::class => 'handleMessageSent',
        ];
    }
}
